<?php  
class ControllerCommonWarranty extends Controller {
	public function index() {
		$this->document->setTitle($this->config->get('config_title'));
		$this->document->setDescription($this->config->get('config_meta_description'));
		
		$this->data['heading_title'] = $this->config->get('config_title');
		
		$this->load->model('catalog/information');
		
		$data = array(
				'module'			 => 'faq',
				'order'              => 'ASC'			
		);
		$this->data['data'] = array();
		$information_info = $this->model_catalog_information->getInformations3($data);
		foreach ($information_info as $result) {
      		$this->data['data'][] = array(
				'title' => $result['title'],
        		'information_id' => $result['information_id'],
				'description' => html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')
				//'image' => $result['image'],				
	    		//'href'  => $this->url->link('module/service', 'service_id=' . $result['information_id'])
      		);
    	}
		$info_end = $this->model_catalog_information->getInformation(63);
		$this->data['info_desc'] = html_entity_decode($info_end['description'], ENT_QUOTES, 'UTF-8');
		$this->data['info_short'] = html_entity_decode($info_end['short'], ENT_QUOTES, 'UTF-8');; 	
		$this->data['info_title'] = $info_end['title']; 	
		$this->data['info_image'] = HTTP_IMAGE.$info_end['image']; 	
			
		$this->document->setTitle($this->data['info_title']);
		$this->document->setDescription($this->data['info_short']);	
		//$this->data['description'] = html_entity_decode($information_info['short'], ENT_QUOTES, 'UTF-8');
		
		
		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/warranty.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/common/warranty.tpl';
		} else {
			$this->template = 'default/template/common/warranty.tpl';
		}
		
		$this->children = array(
			'common/column_left',
			'common/column_right',
			'common/content_top',
			'common/content_bottom',
			'common/footer',
			'common/header'
		);
										
		$this->response->setOutput($this->render());
	}
}
?>